export const isPositiveInteger = (s) => {
    return /^\d+$/.test(s) && s > 0;
}

export const formatMoney = (amount) => {
    return new Intl.NumberFormat('zh-CN', {
        minimumFractionDigits: 2,
        maximumFractionDigits: 2
    }).format(amount / 100.00);
}
